<?php

class Solution
{

    /**
     * @param Integer $n
     * @return Integer
     */
    function sumNums($n)
    {
        return array_sum(range(1, $n));
    }
}
